package com.hxgis.common.base;

import com.hxgis.common.entity.Station;

import java.util.HashMap;
import java.util.Map;

/**
 * 站点关联信息
 */
public class StationAssociated {

    private Station station;

    private Map<String,Station> mapCache = new HashMap<String, Station>();

    public StationAssociated(Station station) {
        this.station = station;
    }

    public StationAssociated(Station station, Station stationCount) {
        this.station = station;
        add(stationCount);
    }

    public Station getStationAssociated(String stationNo){
        return mapCache.get(stationNo);
    }

    public void add(Station station){
        mapCache.put(station.getStationNo(),station);
    }

    public Station getStation() {
        return station;
    }

    public void setStation(Station station) {
        this.station = station;
    }

    public Map<String, Station> getMapCache() {
        return mapCache;
    }

    public void setMapCache(Map<String, Station> mapCache) {
        this.mapCache = mapCache;
    }
}
